Finding the limit of a function using graph